package com.example.cloud.dao.system;

import com.example.cloud.model.system.Menu;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by wangtao on 2018/1/26.
 */
@Repository
public interface MenuRepository extends JpaRepository<Menu,Long> {
    List<Menu> findByParentIdAndDeleteFlag(Long parentId, int deleteFlag);
}
